package com.retailcloud.inventoryservice.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.retailcloud.commonutils.utils.PageUtils;
import com.retailcloud.commonutils.utils.Query;

import com.retailcloud.inventoryservice.dao.InventoryLogDao;
import com.retailcloud.inventoryservice.entity.InventoryLogEntity;
import com.retailcloud.inventoryservice.service.InventoryLogService;


@Service("inventoryLogService")
public class InventoryLogServiceImpl extends ServiceImpl<InventoryLogDao, InventoryLogEntity> implements InventoryLogService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InventoryLogEntity> page = this.page(
                new Query<InventoryLogEntity>().getPage(params),
                new QueryWrapper<InventoryLogEntity>()
        );

        return new PageUtils(page);
    }

}
